package com.hkts.naturalgas.workovertime.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hkts.naturalgas.performance.performanceTo.SubmitPerformanceDTo;
import com.hkts.naturalgas.utils.Result;
import com.hkts.naturalgas.workovertime.VO.HkOvertimeDetailVo;
import com.hkts.naturalgas.workovertime.VO.HkOvertimeInfoNameAndUserNickVo;
import com.hkts.naturalgas.workovertime.VO.HkassessmentOvertimeAndRecordVo;
import com.hkts.naturalgas.workovertime.entity.HkOvertimeDetail;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hml
 * @since 2023-08-31
 */
public interface IHkOvertimeDetailService extends IService<HkOvertimeDetail> {

    /**
     * 分页查询
     *
     * @param bootStrapTable
     * @param hkOvertimeDetail
     * @return
     */
    IPage<HkOvertimeDetail> selectPage(Page<HkOvertimeDetail> page, HkOvertimeDetail hkOvertimeDetail);

    List<HkOvertimeDetail> selectList(HkOvertimeDetail hkOvertimeDetail);

    /**
     * 提交加班信息
     * @param hkOvertimeDetailVo
     * @throws Exception
     */
    List<String> saveOverTimeDetail(HkOvertimeDetailVo hkOvertimeDetailVo) throws Exception;

    Map<String, Object> approvalWithOvertime(SubmitPerformanceDTo submitPerformanceDTo) throws Exception;

    Result<List<HkOvertimeInfoNameAndUserNickVo>> getHkOvertimeInfoAndUserNickNameByProIds();

    /**
     * 根据实例id获取详情
     * @param processInstanceId
     * @return
     */
    public HkassessmentOvertimeAndRecordVo getHkOvertimeDetial(String processInstanceId);
}